﻿{extend name="public:base" /}

{block name="css"}
<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
<link rel="stylesheet" type="text/css" href="__ADMIN__/css/style.css">

<style>
    layui-progress-big, .layui-progress-big .layui-progress-bar {
        height: 30px;
        line-height: 30px
    }

    .layui-progress {
        position: relative;
        height: 30px;
        border-radius: 20px;
        background-color: #eee;
    }

    .layui-progress-text {
        position: relative;
        top: -20px;
        line-height: 30px;
        font-size: 12px;
        color: #666;
    }

    .webuploader-pick {
        width: 120px;
        background: #1ab394;
        padding: 9px 0;
        font-size: 13px;
    }

    .webuploader-pick-hover {
        background: #19A689;
    }

</style>{/block}

{block name="content"}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">所属栏目</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.type_name}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">终端</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.terminal == 1 ? '网页端' : 'app端'}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">发布日期</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.publish_time}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">当前状态</label>
                                <div class="col-sm-3">
                                    {if $info['status'] == 1}
                                    <div class="form-control" style="border: none;color: green">正常</div>
                                    {else /}
                                    <div class="form-control" style="border: none;color: red">异常</div>
                                    {/if}
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">监测时间</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.check_time|timeFormat}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">持续时间</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.status == 0 ? errorKeepTime(3, $info.live_id, $info.id, $info.check_time) : ''}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">媒体流</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.url}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">日志路径</label>
                                <div class="col-sm-3">
                                    <div class="form-control" style="border: none">{$info.log_file_path}</div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row layui-form">
                                <label class="col-lg-1 col-form-label">操作</label>
                                <div class="col-lg-3">
                                    <input type="radio" name="style" value="2" title="已处理" {$info.style== 2 ? 'checked' : ''}>
                                    <input type="radio" name="style" value="3" title="暂不处理" {$info.style== 3 ? 'checked' : ''}>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <input type="hidden" name="id" value="{:input('id')}">
                        <input type="hidden" name="live_id" value="{$info.live_id}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

{block name='js'}
<script src="__STATIC__/layui/layui.js"></script>
{/block}
